package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.dto.DishDto;
import com.itheima.reggie.entity.dto.PageQueryDto;

/**
 * 菜品业务层接口
 * @Author Vsunks.v
 * @Date 2022/8/14 10:34
 * @Blog blog.sunxiaowei.net
 * @Description: 菜品业务层接口
 */
public interface DishService extends IService<Dish> {
    boolean saveWithNameCheck(Dish dish);

    boolean saveWithNameCheckAndSaveFlavors(DishDto dishDto);

    Page<DishDto> page(PageQueryDto pageQueryDto);

    DishDto getWithFlavorsById(Long id);

    boolean updateWithFlavorsById(DishDto dishDto);

    boolean switchStatus(Integer status, Long[] ids);
}
